
package com.submaxim_testdb.data;

import java.io.Serializable;
import java.util.Date;


/**
 *  submaxim_testDB.RdnsId
 *  11/10/2011 17:39:29
 * 
 */
public class RdnsId
    implements Serializable
{

    private Integer userId;
    private String status;
    private Date datetime;

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof RdnsId)) {
            return false;
        }
        RdnsId other = ((RdnsId) o);
        if (this.userId == null) {
            if (other.userId!= null) {
                return false;
            }
        } else {
            if (!this.userId.equals(other.userId)) {
                return false;
            }
        }
        if (this.status == null) {
            if (other.status!= null) {
                return false;
            }
        } else {
            if (!this.status.equals(other.status)) {
                return false;
            }
        }
        if (this.datetime == null) {
            if (other.datetime!= null) {
                return false;
            }
        } else {
            if (!this.datetime.equals(other.datetime)) {
                return false;
            }
        }
        return true;
    }

    public int hashCode() {
        int rtn = 17;
        rtn = (rtn* 37);
        if (this.userId!= null) {
            rtn = (rtn + this.userId.hashCode());
        }
        rtn = (rtn* 37);
        if (this.status!= null) {
            rtn = (rtn + this.status.hashCode());
        }
        rtn = (rtn* 37);
        if (this.datetime!= null) {
            rtn = (rtn + this.datetime.hashCode());
        }
        return rtn;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Date getDatetime() {
        return datetime;
    }

    public void setDatetime(Date datetime) {
        this.datetime = datetime;
    }

}
